import { BasicFetchResult } from '/@/api/model/baseModel';

export interface LabelListItem {
  userId: string;
  description: string;
  operationName: string;
  method: string;
  params: string;
  srcip: string;
  logTime: string;
  duration: string;
  uri: string;
  status: string;
  module: string;
  labels: any;
}

export interface SaaSLogListItem {
  labels: LabelListItem;
}

export type LogResultModel = BasicFetchResult<SaaSLogListItem>;
export type logFetchResult = LabelListItem[];

export type PageParams = {
  limit: string;
  tenantCode: string;
  logTime: string[];
  appId?: string;
  module?: string;
  keyword?: string;
  startTimePrimal: string;
  endTimePrimal: string;
};

export type LogPageParams = PageParams;
